/**
 *	TrueMusic - simple Java music player
 *
 *	TrueMusic is free software; you can redistribute it
 *	and/or modify it under the terms of the GNU General
 *	Public License as published by the Free Software
 *	Foundation; either version 2 of the License or (at
 *	your option) any later version.
 *	
 *	This program is distributed in the hope that it will be
 *	useful but WITHOUT ANY WARRANTY; without even the 
 *	implied warranty of the MERCHANTABILITY or FITNESS FOR
 *	A PARTICULAR PURPOSE. See the GNU General Public
 *	License for more details.
 *	
 *	Copyright (c)2005-2007 Ryan Macnak <rmacnak@gmail.com>
 */

package com.servequake.truemusic;

/**
 * Listener for playback events.
 */
public interface PlaybackListener
{
	/**
	 * Call when playback is started (or unpaused).
	 */
	public void playbackStarted(/*Audio a*/);

	/**
	 * Call when playback is stopped (or paused).
	 */
	public void playbackStopped(/*Audio a*/);

	/**
	 * Call when a frame has been played back. (Used for progress bars)
	 */
	public void frameCompleted(/*Audio a,*/int frame);

	/**
	 * Called when the last frame has been played.
 	 */
	public void playbackCompleted(/*Audio a*/);

	public void playbackError(/*Audio a*/);

	public int getVolume();
}